<?php
    @include_once("common.php");
    $email=$_POST["email"];
    if(!$email){
        argErr();
    }
    $search = "select * from `userlist` where email='$email'";
    $result = mysqli_query($conn,$search);
    $item=mysqli_fetch_assoc($result);
    $obj=array();
    if(!$item){
        $obj["status"]=true;
        $obj["detail"]="电子邮箱可以注册";
    }else{
        $obj["status"]=false;
        $obj["detail"]="电子邮箱已注册";
    }
    echo json_encode($obj);
?>